﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace Logic
{
    public class BouquetLogic
    {

        public int GetTotalPrice(Bouquet bouquet)
        {
            int totalPrice = 0;

            List<AbstractPlant> plants = bouquet.Plants;

            for (int i = 0; i < plants.Count; i++)
            {
                AbstractPlant plant = plants[i];
                totalPrice += plant.Price;
            }

            return totalPrice;
        }

    }
}
